package cn.stylefeng.guns.modular.manager.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 国家数据
 * </p>
 *
 * @author yumker
 * @since 2021-01-07
 */
@TableName("flow_country")
public class FlowCountry implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "country_id", type = IdType.AUTO)
    private Long countryId;

    @TableField("country_name")
    private String countryName;

    @TableField("count_abbr")
    private String countAbbr;

    @TableField("is_hot")
    private Integer isHot;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField("hide")
    private Integer hide;
    @TableField(exist = false)
    private List<FlowCountryCity> flowCountryCities;

    public List<FlowCountryCity> getFlowCountryCities() {
        return flowCountryCities;
    }

    public void setFlowCountryCities(List<FlowCountryCity> flowCountryCities) {
        this.flowCountryCities = flowCountryCities;
    }

    public Long getCountryId() {
        return countryId;
    }

    public void setCountryId(Long countryId) {
        this.countryId = countryId;
    }

    public String getCountryName() {
        return countryName;
    }

    public void setCountryName(String countryName) {
        this.countryName = countryName;
    }

    public String getCountAbbr() {
        return countAbbr;
    }

    public void setCountAbbr(String countAbbr) {
        this.countAbbr = countAbbr;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getHide() {
        return hide;
    }

    public void setHide(Integer hide) {
        this.hide = hide;
    }

    @Override
    public String toString() {
        return "FlowCountry{" +
                "countryId=" + countryId +
                ", countryName=" + countryName +
                ", countAbbr=" + countAbbr +
                ", isHot=" + isHot +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", hide=" + hide +
                "}";
    }
}
